package team.modinstaller.server.util;

import java.io.File;
import java.util.logging.Logger;

import org.bukkit.Bukkit;
import org.bukkit.plugin.Plugin;

public class Utils {
	public static final String MAIN = "ModInstaller";
	
	public static Plugin getMain() {
		return Bukkit.getPluginManager().getPlugin(MAIN);
	}
	
	public static File getDataFolder() {
		return getMain().getDataFolder();
	}
	
	public static Logger getLogger() {
		return Bukkit.getLogger();
	}
}
